import axios from 'axios';

// 获取公司列表
export function getcompanylist(data: any) {
  return axios.get('/company/index', {
    params: data,
  });
}
// 获取企业详情
export function getcompanydetail(data: any) {
  return axios.get('/company/detail', {
    params: data,
  });
}
// 添加企业
export function addcompany(data: any) {
  return axios.post('/company/add', data);
}
// 编辑企业
export function editcompany(data: any) {
  return axios.post('/company/edit', data);
}
// 删除企业
export function deletecompany(data: any) {
  return axios.post('/company/delete', data);
}

// 企业资质
// 获取企业资质列表
export function getzhizlist(data: any) {
  return axios.get('/company_qual/index', {
    params: data,
  });
}
// 资质详情
export function getzhihicompanydetail(data: any) {
  return axios.get('/company_qual/detail', {
    params: data,
  });
}
// 添加资质
export function addzhizhicompany(data: any) {
  return axios.post('/company_qual/add', data);
}
// 编辑资质
export function editzhizhicompany(data: any) {
  return axios.post('/company_qual/edit', data);
}
// 删除资质
export function deletezhizhicompany(data: any) {
  return axios.post('/company_qual/delete', data);
}

// 企业变更
// 获取变更列表
export function getbianglist(data: any) {
  return axios.get('/company_change/index', {
    params: data,
  });
}
// 资质详情
export function getbaingcompanydetail(data: any) {
  return axios.get('/company_change/detail', {
    params: data,
  });
}
// 添加资质
export function addbiangcompany(data: any) {
  return axios.post('/company_change/add', data);
}
// 编辑资质
export function editbiangcompany(data: any) {
  return axios.post('/company_change/edit', data);
}
// 删除资质
export function deletebiangcompany(data: any) {
  return axios.post('/company_change/delete', data);
}
